package com.smartstate.admin.biz.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author runner-up
 */
@Data
@ApiModel(value = "UserDto",description = "用户")
public class UserDto implements Serializable {
    @ApiModelProperty(value = "当前登录用户id",hidden = true)
    private String loginUserId;
    @ApiModelProperty("角色id")
    private String roleId;
    @ApiModelProperty("用户id")
    private String id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("用户昵称")
    private String nickname;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("原密码")
    private String originalPassword;
    @ApiModelProperty("年龄")
    private Integer age;
    @ApiModelProperty("性别 1:男 2:女")
    private Integer sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("生日")
    private LocalDateTime birthday;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("省")
    private String province;
    @ApiModelProperty("市")
    private String city;
    @ApiModelProperty("区")
    private String area;
    @ApiModelProperty("住址")
    private String address;
    @ApiModelProperty("后台用户头像")
    private String headImage;
    @ApiModelProperty("部门id")
    private String deptId;
    @ApiModelProperty("企业id")
    private String enterpriseId;
    @ApiModelProperty(value = "密码修改方式 1 更新密码，2重置密码")
    private int updatePassword;

}
